<%--
  Created by IntelliJ IDEA.
  User: Aaking-aline
  Date: 2022-05-09
  Time: 8:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>登录注册页</title>
  </head>
  <body>
    <center>

      <%
        Object error = request.getAttribute("error");
        if(error != null){
          out.print("<script>alert('登录失败,账号或密码错误');</script>");
        }
      %>

      <form action="LoginServlet" method="post">
        登录账号: <input type="text" name="username"> <br>  <%--input标签的name属性是用来设置发送到后台时 键值对的键名  值是你在输入框里输入的内容--%>
        登录密码: <input type="password" name="password"> <br>
        <input type="submit" value="登录">
      </form>

      <a href="register.jsp">还没有账号?点我注册呦!</a>

    </center>
  </body>
</html>
